﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="InformationAdd.aspx.cs" Inherits="Accounting.admin.Information.InformationAdd" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link type="text/css" href="../../css/AdminCss.css" rel="stylesheet" />
    <script type="text/javascript" src="../../js/AdminJs.js"></script>
    <%-- 时间选择器 --%>
    <script src="../../Js/CalendarJs.js" type="text/javascript"></script>
    <link href="../../Css/CalendarCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../js/jquery.min.js"></script>
    <%-- 百度富文本编辑器 --%>
    <script type="text/javascript" charset="utf-8" src="../../utf8-net/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../utf8-net/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="../../utf8-net/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="Div_Row">
            <h2 id="H2_Title" runat="server">添加：</h2>
        </div>
        <div class="Div_Row">
            <div id="tb"></div>
            <script>

                jQuery.getScript("http://xxgk.wzvtc.cn/data/inputs", function (data, status, jqxhr) {
                    /* 
                    做一些加载完成后需要执行的事情
                    */
                    $("#tb").html(istbz);
                });
            </script>
        </div>
        <div class="Div_Row">
            <span>二级目录:</span>
            <asp:DropDownList ID="NavSubList" runat="server" CssClass="TxtBox_mid_short">
                <asp:ListItem Value="0">--请选择--</asp:ListItem>
            </asp:DropDownList>
            <asp:Label ID="UserType" runat="server" Text="" Visible="false"></asp:Label>
            <asp:Label ID="lblNavId" runat="server" Text="" Visible="false"></asp:Label>
        </div>
        <div class="Div_Row">
            <span>新闻标题: </span>
            <asp:TextBox ID="txtTitle" runat="server" CssClass="TxtBox_long_short"></asp:TextBox><span style="color: Red;">*</span>

            <asp:CheckBox ID="Recommend" runat="server" Text="推荐" onclick="javascript: RecommendSwitch()" />

            <asp:CheckBox ID="Release" runat="server" Text="发布" />
            <p class="P_Alt Size_12">
                <t class="P_Note_Red">注：</t>
                想要在首页展示，请勾选推荐，想要发布到首页，请勾选发布
            </p>
        </div>
        <div id="Recommend_Div" class="Div_Row display_none">
            <span>选择图片:</span>
            <asp:FileUpload ID="RecommendFile" runat="server" />
            <asp:Image ID="RecommendFile_Show" runat="server" Width="500px" Height="200px" />
            <p class="P_Alt Size_12">
                <t class="P_Note_Red">注：</t>
                此为缩略图,当您选择完文件之后，点击修改按钮，便会自动上传
            </p>
        </div>
        <div class="Div_Row">
            <span>发布日期:</span>
            <asp:TextBox ID="txtDateTime" runat="server" CssClass="TxtBox_short_short"></asp:TextBox>
            <p class="P_Alt Size_12">
                <t class="P_Note_Red">注：</t>
                例：2015-11-11
            </p>
            <asp:Label ID="lblDate" runat="server" Text="" Visible="false"></asp:Label>
        </div>
        <div class="Div_Row">
            <span>新闻作者: </span>
            <asp:TextBox ID="txtAuthor" runat="server" CssClass="TxtBox_short_short">admin</asp:TextBox><span class="Color_red">*</span>
        </div>
        <div class="Div_Row">
            <span>浏览次数: </span>
            <asp:TextBox ID="txtNumber" runat="server" CssClass="TxtBox_short_short">0</asp:TextBox>
        </div>
        <div class="Div_Row">
            <script id="editor" type="text/plain" style="width: 740px; height: 400px;">
            </script>
            <p class="P_Alt">
                <t class="P_Note_Red">注：</t>
                内容中展示的图片建议最大宽度为800
            </p>
            
            <script type="text/javascript">
                var ue = UE.getEditor('editor');

                function getContent() {
                    document.getElementById("Content").value = UE.getEditor('editor').getContent();

                    document.getElementById("btnSubmit").style.display = "Block";
                    document.getElementById("ASubmit").style.display = "none";
                }
            </script>
            <asp:TextBox ID="Content" runat="server" CssClass="display_none"></asp:TextBox>
        </div>
        <div class="Div_Row">
            <span>选择文件:</span>
            <asp:FileUpload ID="ReleaseFile" runat="server" />
            <p class="P_Alt Size_12">
                <t class="P_Note_Red">注：</t>
                当您选择完文件之后，点击修改按钮，便会自动上传
            </p>
        </div>
        <div class="Div_Row">
            <a href="javascript:getContent();" ID="ASubmit" runat="server" class="btn_Css">提交</a>
            <asp:Button ID="btnSubmit" runat="server" CssClass="btn_Css display_none Div_float_left" Text="确定" OnClick="btnSubmit_Click" />
            <asp:Button ID="btnRest" runat="server" CssClass="btn_Css Div_Margin_left_20" Text="重置" OnClick="btnRest_Click" />
        </div>
    </form>
</body>
</html>
